package components
{
	import UIFree.ObjectEvent;
	import UIFree.controls.uif_button;
	import UIFree.controls.uif_popupMenu;
	import UIFree.uif_component;
	import UIFree.uif_ecomponent;
	
	import UIUtils.uif_util;
	
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	public class clt_popupMenu extends uif_popupMenu {
		public function clt_popupMenu(parent: uif_component, a_activeControl: uif_ecomponent, a_list: Array, onSelect: Function=null, a_options: Object=null) {
			super(parent, uif_util.unionObj({
				orientation	: 4,
				itemClass	: uif_button,
				showEvent	: MouseEvent.ROLL_OVER
			}, a_options), 230, 200, 'popupmenu');
			listMenu = a_list;

			if (onSelect != null)
				addEvent(Event.SELECT, onSelect);
			activeControl = a_activeControl;
		}
	}
}